﻿using BCCommon;
using BCCommon.FreightEnums;
using BCCommon.TMS.Order;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace BCDto.TMS.Order.OrderExtention
{
    /// <summary>
    /// 订单扩展信息--装卸货地址及收货人信息
    /// </summary>
    public class OrderExtentionRequestDto
    {
        /// <summary>
        /// 目标地址
        /// </summary>
        [Display(Name = "目标地址")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public string EndAddress { get; set; }
        /// <summary>
        /// 目标地址区县编码
        /// </summary>
        [Display(Name = "目标地址区县编码")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public string EndCountyCode { get; set; }
        /// <summary>
        /// 经度
        /// </summary>
        [Display(Name = "经度")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public double EndLongitude { get; set; }
        /// <summary>
        /// 纬度
        /// </summary>
        [Display(Name = "纬度")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public double EndLatitude { get; set; }
        /// <summary>
        /// 联系人姓名
        /// </summary>
        [Display(Name = "联系人姓名")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public string Consignee { get; set; }
        /// <summary>
        /// 收货人性别
        /// </summary>
        [Display(Name = "收货人性别")]
        public ContacterGenderType ConsigneeGender { get; set; }
        /// <summary>
        /// 联系人电话
        /// </summary>
        [Display(Name = "联系人电话")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public string ConsigneePhone { get; set; }
        /// <summary>
        /// 目标地址顺序(升序排列)
        /// </summary>
        [Display(Name = "目标地址顺序")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public int EndIndex { get; set; }
        /// <summary>
        /// 目标地址类型
        /// </summary>
        [Display(Name = "目标地址类型")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public AddressType AddressType { get; set; }
    }
}
